﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace DiscoveryLogic.Workflows.Monitor.Avalon.PatientHelper
{
    /// <summary>
    /// Interaction logic for DocumentWindow.xaml
    /// </summary>
    public partial class DocumentWindow : Window
    {
        public DocumentWindow()
        {
            InitializeComponent();
        }

        void WindowLoaded(Object sender, RoutedEventArgs args)
        {
            string fileFullName = AppDomain.CurrentDomain.BaseDirectory + @"Resources\Documents\NephrolDialTransplant.xaml";
            FileStream fs = File.OpenRead(fileFullName);

            JournalDocumentReader.Document = XamlReader.Load(fs) as FlowDocument;
        }
    }
}
